home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / fontutil.6 / fontutil / fontutils-0.6 / include / filename.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-10  |  1.7 KB  |  42 lines

  1. /* filename.h: declarations for manipulating filenames.
  2.  
  3. Copyright (C) 1992 Free Software Foundation, Inc.
  4.  
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2, or (at your option)
  8. any later version.
  9.  
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. GNU General Public License for more details.
  14.  
  15. You should have received a copy of the GNU General Public License
  16. along with this program; if not, write to the Free Software
  17. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  18.  
  19. #ifndef FILENAME_H
  20. #define FILENAME_H
  21.  
  22. #include "types.h"
  23.  
  24. /* This searches specifically for the PK font FONT_NAME at resolution
  25.    DPI.  If FONT_NAME is absolute or explicitly relative, we simply
  26.    return whether `FONT_NAME.DPIpk' is readable.  Otherwise, we use the
  27.    environment variables PKFONTS, then TEXPKS, then TEXFONTS for the
  28.    paths to search.  We return NULL if the font cannot be found.  */
  29. extern string find_pk_filename (string font_name, unsigned dpi);
  30.  
  31. /* Like `find_pk_filename', except search for a GF font named
  32.    `FONT_NAME.DPIgf'.  The environment variables used are GFFONTS then
  33.    TEXFONTS.  We return NULL if the font cannot be found.  */
  34. extern string find_gf_filename (string font_name, unsigned dpi);
  35.  
  36. /* Like `find_pk_filename', except search for a TFM file named
  37.    `FONT_NAME.tfm'.  The environment variable used is TEXFONTS.  We
  38.    return NULL if the font cannot be found.  */
  39. extern string find_tfm_filename (string font_name);
  40.  
  41. #endif /* not FILENAME_H */
  42.